<template>
  <!-- 我的评价 -->

  <div class="main">
    <header>
      <div class="return" @click="returns">
        <i class="iconfont icon-zuojiantou"></i>
      </div>
      <div class="title">我的评价</div>
    </header>
    <!-- 选项栏 -->
    <van-tabs
      line-width="50%"
      class="tabs"
      style="height: 60px"
      v-model="active"
    >
      <div class="tabtext">
        <van-tab title="待评价" style="font-size: 16px; text-align: center">
          <!-- 我的评价 -->
          <div class="handle">
            <ul class="cargo">
              <li v-for="(item, index) in appraseList" :key="index">
                <div class="left">
                  <img :src="item.imgSrc" alt="" />
                </div>
                <div class="right">
                  <div>
                    <van-row type="flex" justify="space-between">
                      <van-col span="6"> {{item.goodsName}} </van-col>
                      <van-col span="18"> {{item.trade}}</van-col>
                    </van-row>
                  </div>
                  <span>
                    <p>{{item.money}}</p>
                  </span>
                  <span>
                    <p>{{item.goodsName2}}</p>
                  </span>
                  <span>￥{{item.time}}</span>
                  <span>购买时间</span>
                  <div class="pingjia">去评价</div>
                </div>
              </li>
            </ul>
  
          </div>
        </van-tab>
        <van-tab
          title="已评价"
          style="font-size: 16px; text-align: center"
        ></van-tab>
      </div>
    </van-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: "",
      result: [],
      value: 1,
      appraseList: [
        {
          imgSrc: '',
          goodsName: '电脑桌',
          goodsName1: '凡积简约现代 钢化玻璃电脑桌',
          goodsName2: '台式家用办公桌 简约学习书桌写字台',
         trade:'交易已完成',
         money:'100',
        time:'2021.12.14',
     

        },
      ]
    };
  },
  methods: {
    toggleAll() {
      this.$refs.checkboxGroup.toggleAll();
    },
    
  //跳转
     returns(){
         this.$router.push('/my')
     }
  
  },
};
</script>

<style lang="less" scoped>
.main {
  height: 1334px;
  background: #f2f2f2;
  header {
    width: 100%;
    height: 88px;
    background-color: #ff5654;
    display: flex;
    .return {
      margin-left: 20px;
      i {
        color: #fff;
        font-size: 34px;
        line-height: 88px;
      }
    }
    .title {
      padding: 0 260px;
      color: #fff;
      font-size: 36px;
      line-height: 88px;
    }
  }
  font-size: 40px;
  .tabtext {
    height: 60px;
    font-size: 40px;
  }
  .tabs {
    height: 60px;
  }
}

.handle {
  width: 100%;
  

  .cargo {
    font-size: 16px;
    background-color: #ffffff;
    margin: 20px;
    padding: 20px;
   
  li{
    display: flex;
      .left {
    
      flex-direction: column;
      img {
        width: 220px;
        height: 177px;
        margin-bottom: 15px;
      }
    }
    .van-col--18 {
      text-align: right;
      color: #fd5756;
    }
    .right{
      margin-left: 20px;
      display: flex;
      flex-direction: column;
      text-align: left;
      p {
        margin: 0;
      }

      span:nth-child(4) {
        margin: 20px 0;
        color: #ff5555;
      }
      .pingjia {
        text-align: center;
        width: 130px;
        border: 1px solid red;
        color: red;
        margin-left: 290px;
      }
    }
  }
  }
}
</style>
